//
//  BusnessTwoCell.m
//  JinChengYun
//
//  Created by 金橙云 on 2017/9/13.
//  Copyright © 2017年 金橙云. All rights reserved.
//
#define ONE_WID (([UIScreen mainScreen].bounds.size.width-50)/4)
#define LINE_WID ([UIScreen mainScreen].bounds.size.width)/4
#import "BusnessTwoCell.h"

@implementation BusnessTwoCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        _floorLab = [[UILabel alloc] init];
        _floorLab.textAlignment = NSTextAlignmentCenter;
        _floorLab.text = @"6";
        _floorLab.textColor = [UIColor blackColor];
        _floorLab.textAlignment = NSTextAlignmentCenter;
        // _dayLab.backgroundColor = [UIColor redColor];
        _floorLab.font = [UIFont systemFontOfSize:12];
        [self addSubview:_floorLab];
        [_floorLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(CGSizeMake(ONE_WID, 20));
            make.left.equalTo(self.mas_left).offset(10);
            make.top.equalTo(self.mas_top).offset(10);
        }];
        
        
        
        _houseLab = [[UILabel alloc] init];
        _houseLab.textAlignment = NSTextAlignmentCenter;
        _houseLab.text = @"109";
        _houseLab.textColor = [UIColor blackColor];
        _houseLab.textAlignment = NSTextAlignmentCenter;
        // _louLab.backgroundColor = [UIColor redColor];
        _houseLab.font = [UIFont systemFontOfSize:12];
        [self addSubview:_houseLab];
        [_houseLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(CGSizeMake(ONE_WID, 20));
            // make.left.equalTo(_dayLab.mas_right);
            make.right.equalTo(self.mas_centerX).offset(-5);
            make.top.equalTo(self.mas_top).offset(10);
        }];
        
        
        _yuLab = [[UILabel alloc] init];
        _yuLab.textAlignment = NSTextAlignmentCenter;
        _yuLab.text = @"198.00";
        _yuLab.textColor = [UIColor blackColor];
        //_wuLab.backgroundColor = [UIColor redColor];
        _yuLab.textAlignment = NSTextAlignmentCenter;
        _yuLab.font = [UIFont systemFontOfSize:12];
        [self addSubview:_yuLab];
        [_yuLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(CGSizeMake(ONE_WID, 20));
            //make.left.equalTo(_louLab.mas_right);
            make.top.equalTo(self.mas_top).offset(10);
            make.left.mas_equalTo(self.mas_centerX).offset(5);
        }];
        
        
        _ceLab = [[UILabel alloc] init];
        _ceLab.textAlignment = NSTextAlignmentCenter;
        _ceLab.text = @"[7]";
        _ceLab.textAlignment = NSTextAlignmentCenter;
        _ceLab.textColor = [UIColor orangeColor];
        // _shenLab.backgroundColor = [UIColor redColor];
        _ceLab.font = [UIFont systemFontOfSize:14];
        [self addSubview:_ceLab];
        [_ceLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(CGSizeMake(ONE_WID, 20));
            make.right.equalTo(self.mas_right).offset(-10);
            make.top.equalTo(self.mas_top).offset(10);
        }];
        
        for (int i =0; i<3; i++) {
            UILabel *lineLa = [[UILabel alloc] init];
            lineLa.backgroundColor = [UIColor lightGrayColor];
            lineLa.frame = CGRectMake(LINE_WID+LINE_WID*i, 0, 1, 40);
            [self addSubview:lineLa];
            
            
            
            
            
        }

    }
    return self;
}


-(void)setUpCeoBusnessTwoCellFloorStr:(NSString *)_floor withHouseLab:(NSString *)_house withYueLab:(NSString *)_yu withWuCeStr:(NSString *)_ce
{
    
    _floorLab.text = _floor;
    _houseLab.text = _house;
    _yuLab.text = _yu;
    _ceLab.text = _ce;
   


    
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
